//
//  HUDToastVC.swift
//  BWPanelKit
//
//  Created by zhuxuhong on 2022/3/7.
//

import UIKit
import BWUIKit

class HUDToastVC: HUDVC {
    @IBOutlet weak var toastTopMargin: NSLayoutConstraint!
    @IBOutlet weak var toastBottomMargin: NSLayoutConstraint!
    
    override func setupHUDView() {
        super.setupHUDView()
        
        let h = contentWrapperView.frame.height
        textLabel.textAlignment = (hud.icon == nil && h <= 50) ? .center : .left
    }
}


